projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6858e77
)
Improve last change to vc-git-mode-line-string
author
Leo Liu
<sdl.web@gmail.com>
Wed, 27 Apr 2016 14:12:12 +0000
(22:12 +0800)
committer
Leo Liu
<sdl.web@gmail.com>
Wed, 27 Apr 2016 14:12:12 +0000
(22:12 +0800)
* lisp/vc/vc-git.el (vc-git-mode-line-string): Better fix that caches
the result.
lisp/vc/vc-git.el
patch
|
blob
|
history
diff --git
a/lisp/vc/vc-git.el
b/lisp/vc/vc-git.el
index d5ba0c8be7d910aa90b639a88bea77191654e563..f35c84d50c52efcbfcbecdb8fc35a6a55f764b28 100644
(file)
--- a/
lisp/vc/vc-git.el
+++ b/
lisp/vc/vc-git.el
@@
-278,7
+278,7
@@
Should be consistent with the Git config value i18n.logOutputEncoding."
(defun vc-git-mode-line-string (file)
"Return a string for `vc-mode-line' to put in the mode line for FILE."
- (let* ((rev (vc-
git-working-revision file
))
+ (let* ((rev (vc-
working-revision file 'Git
))
(disp-rev (or (vc-git--symbolic-ref file)
(substring rev 0 7)))
(def-ml (vc-default-mode-line-string 'Git file))